<div class="box-body">
    <div class="form-group">
        <label class="col-sm-2 control-label" for="user_name">用户名</label>

        <div class="col-sm-10">
            <input type="text" autocomplete="off" data-bv-notempty data-bv-notempty-message="姓名不能为空" name="user.user_name" value="#(user.user_name ??)" placeholder="用户名" id="user_name" class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="user_pwd">密码</label>

        <div class="col-sm-10">
            <input type="password" autocomplete="off" name="user.user_pwd" value="" placeholder="密码" id="user_pwd" class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="real_name">真实姓名</label>

        <div class="col-sm-10">
            <input type="text" name="user.real_name" value="#(user.real_name ??)" placeholder="真实姓名" id="real_name" class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="gender">性别</label>
        <div class="col-sm-2">
            <select class="form-control" name="user.gender" id="gender" autocomplete="off" style="width:135px">
                <option value="0" #if (user.gender ?? == 0) selected #end >男</option>
                <option value="1" #if (user.gender ?? == 1) selected #end > 女</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="email">邮箱</label>

        <div class="col-sm-10">
            <input type="text" name="user.email" data-bv-notempty data-bv-emailaddress value="#(user.email ??)"  placeholder="邮箱" id="email" class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="mobile">电话</label>

        <div class="col-sm-10">
            <input type="text" name="user.mobile" data-bv-notempty value="#(user.mobile ??)" placeholder="电话" id="mobile" class="form-control">
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label" for="header">角色</label>
        <div class="col-sm-2">
            <select id="role" title="请选择角色" class="selectpicker bs-select-hidden"   multiple data-done-button="true" name="role_id" autocomplete="off" >
                    #for ( role : roles ??)
                        #set( flag = false)

                        #for(s : selected ??)
                            #if (s.id ?? && s.id==role.id)
                                #set( flag = true)
                            #end
                        #end

                        <option value="#(role.id ??)" #if(flag) selected="selected" #end > #(role.role_name ??) </option>
                    #end
            </select>
        </div>
    </div>
	</div>
<!-- /.box-body -->
